//
//  MYXSessionListViewController.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/18.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXSessionListViewController.h"
#import "NIMSessionListViewController.h"
#import "MYXNIMSessionViewController.h"
@interface MYXSessionListViewController ()

@end

@implementation MYXSessionListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

#pragma mark - UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    NIMRecentSession *recentSession = self.recentSessions[indexPath.row];
  //  [self onSelectedRecent:recentSession atIndexPath:indexPath];
    MYXNIMSessionViewController *vc = [[MYXNIMSessionViewController alloc] initWithSession:recentSession.session];
    [self.navigationController pushViewController:vc animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
